package com.cloudlead.web.action.example;

import com.cloudlead.common.lang.annotation.Label;
import com.cloudlead.common.worker.action.impl.AbstractActionFactory;
import com.cloudlead.common.worker.annotation.Action;
import com.cloudlead.common.worker.annotation.Order;
import com.cloudlead.common.worker.security.annotation.RequireGuest;
import org.springframework.stereotype.Controller;

@Label("实例")
@Order(1000)
@Controller
@RequireGuest
public class ExampleActionFactory extends AbstractActionFactory {

    public ExampleActionFactory() {
        super(null);
    }

    @Action("sayHello")
    @Order(1)
    @Label("简单实例")
    public String hello() {
        return "hello";
    }

}
